<?php
/*
* Plugin Name: GravityForms field Limit by day
* Plugin URI: https://notabug.org/wp/gflimitbyday
* Description: Make unique by text and date
* Version: 1.0
* Author: saeb molaee
* Author URI: https://twitter.com/sae13
* License: GPL3
* Domain Path: /languages
*/

if (!defined('ABSPATH')) {
    exit;
}

if (!defined('GF_LIMIT_BY_DAY_VERSION')) {
    define('GF_LIMIT_BY_DAY_VERSION', '1.0.0');
}


if (!defined('GF_LIMIT_BY_DAY_DIR')) {
    define('GF_LIMIT_BY_DAY_DIR', plugin_dir_path(__FILE__));
}

if (!defined('GF_LIMIT_BY_DAY_INDEX_FILE')) {
    define('GF_LIMIT_BY_DAY_INDEX_FILE', __FILE__);
}

if (!defined('GF_LIMIT_BY_DAY_URL')) {
    define('GF_LIMIT_BY_DAY_URL', plugins_url('', __FILE__) . '/');
}

require_once 'includes/class-core.php';
/**
 * class GF_Field_Text_Limit_Days extends GF_Field_Text {
 * public $type = 'text_field_limit_day';
 * public function get_form_editor_field_title() {
 * $bagher = __( 'bagherr', 'gflimitbyday' );
 * return esc_attr($bagher);
 * }
 *
 *
 * }
 * GF_Fields::register(new GF_Field_Text_Limit_Days());
 **/
